package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 优惠券模板
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-07
 */
@TableName("t_coupontpl_member")
public class CoupontplMember extends Model<CoupontplMember> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long tplid;
    private Long mpid;
    private Long sid;
    private Long leagueid;

    private Integer mlevel;

    private String mquanyi;

    @TableField(exist = false)
    private List<CoupontplMember> mms = new ArrayList<CoupontplMember>();

    @TableField(exist = false)
    private String sname;

    private Integer num;

    private Integer expire;

    private Integer jihuophone;

    private Integer fatype;

    private Date createtime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTplid() {
        return tplid;
    }

    public void setTplid(Long tplid) {
        this.tplid = tplid;
    }

    public Integer getMlevel() {
        return mlevel;
    }

    public void setMlevel(Integer mlevel) {
        this.mlevel = mlevel;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getFatype() {
        return fatype;
    }

    public void setFatype(Integer fatype) {
        this.fatype = fatype;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getMpid() {
        return mpid;
    }

    public void setMpid(Long mpid) {
        this.mpid = mpid;
    }

    public String getMquanyi() {
        return mquanyi;
    }

    public void setMquanyi(String mquanyi) {
        this.mquanyi = mquanyi;
    }

    public Integer getExpire() {
        return expire;
    }

    public void setExpire(Integer expire) {
        this.expire = expire;
    }

    public Integer getJihuophone() {
        return jihuophone;
    }

    public void setJihuophone(Integer jihuophone) {
        this.jihuophone = jihuophone;
    }

    public Long getSid() {
        return sid;
    }

    public void setSid(Long sid) {
        this.sid = sid;
    }

    public Long getLeagueid() {
        return leagueid;
    }

    public void setLeagueid(Long leagueid) {
        this.leagueid = leagueid;
    }

    public List<CoupontplMember> getMms() {
        return mms;
    }

    public void setMms(List<CoupontplMember> mms) {
        this.mms = mms;
    }

    @Override
    public String toString() {
        return "CoupontplMember{" +
                "id=" + id +
                ", tplid=" + tplid +
                ", mlevel=" + mlevel +
                ", num=" + num +
                ", fatype=" + fatype +
                ", createtime=" + createtime +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
